<div id="container" class="clear">
	<div id="left">
		<form class="pubcode" method="post" action="<?php echo url::site('user/pubcode'); ?>">
			<p class="mb10"><input type="text" name="title" value="标题" class="w555 p5 gray"/></p>
			<?php $lans = array_filter($lans); if(!empty($lans)){ ?>
			<ul class="selectLan mb10 clear">
				<?php foreach($lans as $k=>$lan){ ?>
				<li <?php if($k==0){ ?>class="selected"<?php } ?>><?php echo $lan; ?></li>
				<?php } ?>
			</ul>
			<?php } else {echo '<p class="mb10"><a href="'.url::site('user/setting').'">请设置你常使用的编程语言</a></p>';} ?>
			<input type="hidden" name='lan' value='' />
			<p class="mb10">
				<textarea class="w555 pt gray h260 p5 code" name="snippet">代码片段</textarea>
			</p>
			<p class="moreOptionBtn w545">更多选项</p>
			<div class="moreOption mt10 hide">
				<p class="mb10">
					<textarea class="w555 pt gray h120 p5" name="intro">说明</textarea>
				</p>
				<p>
					<input type="text" name="link" value="链接" class="w555 p5 gray"/>
				</p>
			</div>
			<p class="mt10"><input type="submit" value="提交代码" /></p>
		</form>
	</div>
</div>

